//
//  BaseTableView.h
//  HTP
//
//  Created by admin on 15/10/26.
//  Copyright © 2015年 nit. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol BaseTableDelgate <NSObject>
@optional
-(void)headRefresh;
@optional
-(void)footRefresh;
@end
@interface BaseTableView : UITableView

@property (nonatomic,retain) id<BaseTableDelgate> baseTableDelegate;

@property (nonatomic,retain) NSArray *dataArray;
//TODO:初始化table 并且确定需不需要上下拉动画
-(instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style withHeadRefresh:(BOOL)isHead andFoodRefresh:(BOOL) isFoot;


//TODO:MJRefresh
/**
 *  结束下拉动作
 */
-(void)endHeadRefresh;

/**
 *  结束上拉动作
 */
-(void)endFootRefresh;
@end
